package my.assistant.homecashmanager.common.data;

import java.util.HashMap;
import java.util.Map;

/**
 * 账户类型类，用于提供账户类型的代码与名称
 * 
 * @author eagle
 * 
 */
public class AccountType {
	private static Map<String, String> data = new HashMap<String, String>();

	static {
		data.put("0", "虚拟账户");
		data.put("1", "现金账户");
		data.put("2", "银行账户");
		data.put("3", "债权债务账户");
	}

	public static String getName(String code) {
		if (!data.containsKey(code)) {
			return "未知的账户类型";
		}
		return data.get(code);
	}
}
